import Request from '@/utils/request';


const API_PREFIX = '/business/api';
const PATH = '/dashboard';


export class DashboardApi {


  /**
   * customer
   */
  static customer(params) {
    return Request.get(API_PREFIX + PATH + '/customer', params);
  }

  /**
   * customerByMonth
   */
  static customerByMonths(params) {
    return Request.get(API_PREFIX + PATH + '/customerByMonths', params);
  }
  /**
   * 用户信息
   */
  static getUser(params) {
    return Request.get(API_PREFIX + PATH + '/userInfo', params);
  }


  /**
   * salesPerformance
   */
  static salesPerformanceData(params) {
    return Request.get(API_PREFIX + PATH + '/salesPerformance', params);
  }


  /**
   * seniorityUser
   */
  static seniorityUser(params) {
    return Request.get(API_PREFIX + PATH + '/seniorityUser', params);
  }


  /**
   * seniorityAgent
   */
  static seniorityAgent(params) {
    return Request.get(API_PREFIX + PATH + '/seniorityAgent', params);
  }

  /**
   * seniorityUser
   */
  static seniorityRegion(params) {
    return Request.get(API_PREFIX + PATH + '/seniorityRegion', params);
  }


  /**
   * 代理商信息信息
   */
  static findAgentList(params) {
    return Request.get(API_PREFIX + PATH + '/findAgentList', params);
  }

  static findRegionList(params) {
    return Request.get(API_PREFIX + PATH + '/getRegions', params);
  }

}
